package com.woniu.aimd.mapper;

import com.woniu.aimd.pojo.entity.Wronganswerquestion;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface MyWAnswerQMapper {
    @Select("SELECT * FROM answerquestions WHERE user_id = #{user_id} AND status = #{status}")
    List<Wronganswerquestion> selectmyanswerquestion(@Param("user_id")String user_id, @Param("status")Integer status);
    @Delete("delete from answerquestions where id=#{id}")
    void deletemyanswerquestion(@Param("id")int id);

}
